exports.sessionList = function (req, res) {

    //获取参数信息
    var bodyParams = req.routeInfo.bodyParams;

    //返回结果
    var resultData = {};

    //存放用户主键id
    var u_id = ''

    //任务流创建
    async.waterfall([

        //查询会话列表并排序
        //查询每个会话列表人员的u_username
        (cb)=> {

            db.where({
                "s_belongs_id" : bodyParams.accountNumber
            }).order('s_create_time desc').select("socket_session",(rs) => {
                resultData = rs
                cb();
            })

        }
    ],()=> {

        //返回最终拼接结果
        RES.successResponse(res,resultData);

    });
    
}